CREATE TABLE [dbo].[TDDCLI_INTE]
(
[CO_EMPR] [dbo].[TD_VC_002] NOT NULL,
[CO_CLIE] [dbo].[TD_VC_020] NOT NULL,
[NU_DOCU_CLIE] [dbo].[TD_VC_020] NOT NULL,
[CO_TIPO_DOCU] [dbo].[TD_VC_003] NOT NULL,
[NU_CORR] [dbo].[TD_IN_001] NOT NULL CONSTRAINT [DF__TDDCLI_IN__NU_CO__5614BF03] DEFAULT ((0)),
[TI_AUXI_EMPR] [dbo].[TD_VC_001] NULL,
[CO_CENT_COST] [dbo].[TD_VC_020] NULL,
[CO_CNTA_EMPR] [dbo].[TD_VC_020] NULL,
[CO_ORDE_SERV] [dbo].[TD_VC_020] NULL,
[ST_DIST] [dbo].[TD_VC_001] NULL,
[PO_DIST] [dbo].[TD_NU_009_004] NULL CONSTRAINT [DF__TDDCLI_IN__PO_DI__5708E33C] DEFAULT ((0)),
[IM_DIST] [dbo].[TD_NU_016_004] NOT NULL CONSTRAINT [DF__TDDCLI_IN__IM_DI__57FD0775] DEFAULT ((0)),
[DE_OBSE] [dbo].[TD_VC_100] NULL,
[CO_SUBR_LETR] [dbo].[TD_VC_003] NULL,
[CO_SUBR] [dbo].[TD_VC_003] NULL,
[TI_DOCU] [dbo].[TD_VC_003] NULL,
[NU_DOCU] [dbo].[TD_VC_020] NULL,
[FE_VENC] [dbo].[TD_DT_001] NULL,
[FA_CAMB_ARRI] [dbo].[TD_NU_015_006] NULL,
[FE_ARRI] [dbo].[TD_DT_001] NULL,
[IM_DIST_CNTB] [dbo].[TD_NU_016_004] NOT NULL CONSTRAINT [DF__TDDCLI_IN__IM_DI__58F12BAE] DEFAULT ((0)),
[CO_USUA_CREA] [dbo].[TD_VC_008_USUA] NOT NULL CONSTRAINT [DF__TDDCLI_IN__CO_US__59E54FE7] DEFAULT (suser_sname()),
[FE_USUA_CREA] [dbo].[TD_DT_001_SIST] NOT NULL CONSTRAINT [DF__TDDCLI_IN__FE_US__5AD97420] DEFAULT (getdate()),
[CO_USUA_MODI] [dbo].[TD_VC_008_USUA] NOT NULL CONSTRAINT [DF__TDDCLI_IN__CO_US__5BCD9859] DEFAULT (suser_sname()),
[FE_USUA_MODI] [dbo].[TD_DT_001_SIST] NOT NULL CONSTRAINT [DF__TDDCLI_IN__FE_US__5CC1BC92] DEFAULT (getdate())
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TDDCLI_INTE] ADD CONSTRAINT [PK__TDDCLI_I__D55DA1363533B97C] PRIMARY KEY CLUSTERED  ([CO_EMPR], [CO_CLIE], [NU_DOCU_CLIE], [CO_TIPO_DOCU], [NU_CORR]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TDDCLI_INTE] ADD CONSTRAINT [FK__TDDCLI_IN__CO_EM__40905D8F] FOREIGN KEY ([CO_EMPR]) REFERENCES [dbo].[TMPARA_TESO] ([CO_EMPR])
GO
